
package com.blrs.mapper;

import com.blrs.common.core.domain.AjaxResult;
import com.blrs.common.core.domain.entity.SysDept;
import com.blrs.common.core.domain.entity.SysUser;
import com.blrs.common.core.page.TableDataInfo;
import com.blrs.domain.*;
import com.blrs.domain.vo.BusinessMainClassVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 企业信息Mapper接口
 * 
 * @author yuxiang.chen
 * @date 2023-08-08
 */
public interface EnterpriseInfoMapper 
{
    /**
     * 查询企业信息
     *
     * @param enterpriseId 企业信息主键
     * @return 企业信息
     */
    public EnterpriseInfo selectEnterpriseInfoByEnterpriseId(String enterpriseId);
    public int enterpriseVerify(SysDept dept);
    public List<ElectricSalesInfo> selectSaleByEnterpriseName(ElectricSalesInfo data);
    public List<EnterpriseInfo> selectEnterpriseInfoByEnterpriseName(EnterpriseInfo enterpriseInfo);
    public List<EnterpriseInfo> selectEnterpriseInfoByEnterpriseNameAndBelongTo(EnterpriseInfo enterpriseInfo);
    public List<EnterpriseInfo> selectEnterpriseInfoByNameAndBelongToAndMarkAs(EnterpriseInfo enterpriseInfo);
    public List<HighSeas> selectHighSeasByEnterpriseName(HighSeas data);
    public List<EnterpriseInfo> selectEnterpriseInfoByEnterpriseId1(String enterpriseId);
    public int deleteHighSeasByEnterpriseId(String enterpriseId);
    public List<EnterpriseInfo> getNewFollowList(EnterpriseInfo enterpriseInfo);
    public List<BusinessOpportunityInformation> getNewBusinessFollowList(BusinessOpportunityInformation data);
    public String getMaxEnterpriseNo(String belongTo);
    public Long getEnterpriseNoCount(@Param("enterpriseNo")Integer enterpriseNo,@Param("belongTo")Integer belongTo);
    /**
     * 查询企业信息列表
     *
     * @param enterpriseInfo 企业信息
     * @return 企业信息集合
     */
    public List<EnterpriseInfo> selectEnterpriseInfoList(EnterpriseInfo enterpriseInfo);

    /**
     * 新增企业信息
     *
     * @param enterpriseInfo 企业信息
     * @return 结果
     */
    public int insertEnterpriseInfo(EnterpriseInfo enterpriseInfo);

    /**
     * 修改企业信息
     *
     * @param enterpriseInfo 企业信息
     * @return 结果
     */
    public int updateEnterpriseInfo(EnterpriseInfo enterpriseInfo);

    /**
     * 删除企业信息
     *
     * @param enterpriseId 企业信息主键
     * @return 结果
     */
    public int deleteEnterpriseInfoByEnterpriseId(String enterpriseId);

    /**
     * 批量删除企业信息
     *
     * @param enterpriseIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteEnterpriseInfoByEnterpriseIds(String[] enterpriseIds);
    /**
     * 判断数据是否存在
     * @param id
     * @return
     */
    public Long count(@Param("id") String id);

    /**
     * 新增判重
     * @param enterpriseName 客户名称
     * @param belongTo 归属
     * @return
     */
    public Long numberHighByEnterpriseName(@Param("enterpriseName")String enterpriseName,@Param("belongTo")String belongTo);
    public Long numberElectricByEnterpriseName(@Param("enterpriseName")String enterpriseName,@Param("belongTo")String belongTo);
    public Long number(@Param("enterpriseName")String enterpriseName,@Param("belongTo")String belongTo);

    List<String> selectEnterpriseInfoName(String[] split);
    List<EnterpriseInfo> selectEnterpriseInfoListBatch(String[] enterpriseIds);

    int editMainClass(BusinessMainClassVo businessMainClassVo);
    int editBusinessManager(BusinessMainClassVo businessMainClassVo);
    String importExcel(List<EnterpriseInfo> list) throws NoSuchFieldException, IllegalAccessException;
    List<EnterpriseInfo> selectEnterpriseInfoListPrivate(EnterpriseInfo enterpriseInfo);
    List<EnterpriseInfo> selectEnterpriseInfoListToAdmin(EnterpriseInfo enterpriseInfo);

    List<String> selectIsPersonByName(String enterpriseId);

    List<String> selectIsPersonById(String enterpriseName);

    EnterpriseInfo selectEnterpriseInfoNameAndOrgId(@Param("enterpriseName") String enterpriseName, @Param("orgId") Long orgId);

    List<EnterpriseInfo> selectSupplierLis(EnterpriseInfo enterpriseInfo);
    public int selectEnterpriseInfoNumber(String belongTo);

    int selectInfoByOrgName(@Param("enterpriseName") String deptName, @Param("orgId")Long orgId);


    EnterpriseInfo selectEnterpriseInfoNameAndOrgIdAndDelFlag(@Param("enterpriseName") String enterpriseName, @Param("orgId") Long orgId);

    int selectEnterpriseInfoByEnterpriseIdCount(String id);

    EnterpriseInfo selectSeasEnterpriseNameAndOrgIdAndDelFlag(@Param("enterpriseName") String enterpriseName, @Param("orgId") Long orgId);

    String selectAddressById(String enterpriseId);

    String selectEnterpriseInfoNameById(String customerId);
}

